home *** CD-ROM | disk | FTP | other *** search
/ Enter 2006 October / Enter 10 2006.iso / boot / isolinux / initrd / in / etc / udev / rules.d / 60-pcmcia.rules next >
Encoding:
Text File  |  2006-03-18  |  1.0 KB  |  29 lines

  1. # PCMCIA devices:
  2. #
  3. # modprobe $modalias loads all possibly appropriate modules
  4. ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
  5.         RUN+="/sbin/modprobe $modalias"
  6.  
  7. # Very few CIS firmware entries (which we use for matching)
  8. # are so broken that we need to read out random bytes of it
  9. # instead of the manufactor, card or product ID. Then the
  10. # matching is done in userspace.
  11. ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
  12.         RUN+="/sbin/pcmcia-check-broken-cis"
  13.  
  14. # However, the "weak" matching by func_id is only allowed _after_ modprobe
  15. # returns, so that "strong" matches have a higher priority.
  16. ACTION=="add", SUBSYSTEM=="pcmcia", MODALIAS=="?*", \
  17.         RUN+="/bin/sh -c 'echo 1 > /sys/$devpath/allow_func_id_match'"
  18.  
  19. # PCMCIA sockets:
  20. #
  21. # modprobe the pcmcia bus module so that 16-bit PCMCIA devices work
  22. ACTION=="add", SUBSYSTEM=="pcmcia_socket", \
  23.         RUN+="/sbin/modprobe pcmcia"
  24.  
  25. # if this is a PCMCIA socket which needs a resource database,
  26. # pcmcia-socket-startup sets it up
  27. ACTION=="add", SUBSYSTEM=="pcmcia_socket", \
  28.         RUN+="/sbin/pcmcia-socket-startup"
  29.